public class Rectangle extends Graphics {
    private double width,length;

    public Rectangle(String name, double width, double length) {
        super(name);
        this.width = width;
        this.length = length;
    }

    @Override
    public double areaCalculate() {
        return getLength()*getWidth();
    }

    @Override
    public double circumCalculate() {
        return getLength()+getWidth();
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }
}